#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

from __future__ import print_function
import sys
from xml.etree.ElementTree import parse

import six
import requests

reload(sys)
sys.setdefaultencoding("utf-8")

resp = requests.get("http://fy.webxml.com.cn/webservices/EnglishChinese.asmx/Translator?wordKey=hello")
doc = parse(six.StringIO(resp.text))
root = doc.getroot()
print(root)
